import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import axios from 'axios';
import ElementUI from 'element-ui';
import VueAwesomeSwiper from 'vue-awesome-swiper';
import echarts from 'echarts';
import 'swiper/css/swiper.min.css';
import './assets/icon/iconfont.css'
import 'element-ui/lib/theme-chalk/index.css';
import  "babel-polyfill";
import promise from 'es6-promise';
import * as filter from './utils/filter'
import VueContextMenu from 'vue-contextmenu'
import 'jquery'
import md5 from 'js-md5';
Vue.prototype.$md5 = md5;
Vue.use(VueContextMenu)
Object.keys(filter).forEach(item=>{
    Vue.filter(item,filter[item])
  })
promise.polyfill();
require('./mock');
Vue.config.productionTip = false

import moment from 'moment'//导入文件 
Vue.prototype.$moment = moment;//赋值使用
Vue.use(ElementUI);
Vue.use(VueAwesomeSwiper);
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
Vue.prototype.$echarts = echarts;
axios.defaults.withCredentials = true;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
